package com.sky.mapper;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    List<ShoppingCart> selectShoppingCart(ShoppingCart shoppingCart);

    void updateShoppingCart(ShoppingCart shoppingCart);

    void insertShoppingCart(ShoppingCart shoppingCart);

    void deleteselectShoppingCart(Long userId);

    void insertBatch(List<ShoppingCart> shoppingCartList);


//    void deleteByUserId(Long userId);

//    List<ShoppingCart> list(ShoppingCart shoppingCart);
}
